home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 797 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.2 KB

  1. Date: Wed, 12 Jan 1994 21:07:49 -0500
  2. From: "Nicholas S Castellano" <entropy@terminator.rs.itd.umich.edu>
  3. To: walra%moacs11@nl.net
  4. In-Reply-To: Waldi Ravens's message of Wed, 12 Jan 1994 13:05:50 +0100 <hcOrPvCmu1k@moacs11>
  5. Subject: [MINTOS] compiler switch (was: Re: MiNT goes UNiX, ...)
  6.  
  7.  
  8. The __MINT__ flag is a misnomer that really should be __MINTLIB__.
  9.  
  10. Because of historical practice, I'd reccomend that this misnomer not
  11. be changed.
  12.  
  13. Since the whole point of the mint library is to provide a UNIX-like
  14. environment, the __MINT__ flag should be interpreted as "MiNT running
  15. on a UNIX-like system", e.g. you shouldn't mangle pathnames and so on.
  16.  
  17. If you want to make it possible for people to compile your code in
  18. such a way that it works on plain TOSFS, I'd reccommend the following:
  19.  
  20. #ifdef __atarist__
  21. #ifndef __MINT__
  22. #define TOSFS
  23. #endif
  24. #endif
  25.  
  26. Then you can use the TOSFS flag as an indicator as to whether you
  27. should mangle filenames that tosfs can't deal with.  Anyone who wants
  28. to compile this code for use with MiNT and plain TOS filesystem can
  29. then just add -DTOSFS in the makefile.
  30.  
  31. --
  32. entropy -- it's not just a good idea, it's the second law.
  33. Personal mail:      entropy@gnu.ai.mit.edu
  34. MiNT library mail:  entropy@terminator.rs.itd.umich.edu
  35.  
  36.  
  37.